package cn.kgc.faqmanager.service;

import cn.kgc.faqmanager.pojo.Faqs;
import com.github.pagehelper.PageInfo;

/**
 * @author shkstart
 * @create
 */
public interface FaqsService {
    //根据分类id查询，并分页
    public PageInfo<Faqs> select(Integer pageNum, Integer pageSize, Integer classId);
    //新增
    public Integer add(Faqs faqs);
    //根据id查询
    public Faqs selectById(Integer id);
    //根据id修改
    public Integer update(Faqs faqs);
    //根据id删除
    public Integer delete(Integer id);
}
